/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: CustomizedSqlInjector
 * @Package com.rx.core.interceptor
 * @Description: 自定义SQL注入
 * @author: 陈锦韬
 * @date: 2021/6/18
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.core.interceptor;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import com.rx.core.dbase.DeleteBatchSomeColumn;
import com.rx.core.dbase.InsertBatchSomeColumn;
import com.rx.core.dbase.UpdateBatchSomeColumn;
import com.rx.core.dbase.mutil.method.*;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author: CHENJINTAO170
 * @Description: 自定义SQL注入
 * @date: 2021/6/18
 */
@Slf4j
public class CustomizedSqlInjector extends LogicSqlInjector {
    @Override
    public List<AbstractMethod> getMethodList() {
        log.info("自定义SQL注入：获取自定义函数");
        List<AbstractMethod> methodList = super.getMethodList();
        methodList.add(new InsertBatchSomeColumn());
        methodList.add(new UpdateBatchSomeColumn());
        methodList.add(new DeleteBatchSomeColumn());
        methodList.add(new DoubleInnerSomeColumn());
        methodList.add(new DoubleUnionInnerSomeColumn());
        methodList.add(new DoubleUnionInnerPageSomeColumn());
        methodList.add(new DoubleUnionLeftPageSomeColumn());
        methodList.add(new DoubleUnionLeftSomeColumn());
        methodList.add(new DoubleLeftJoinSomeColumn());
        methodList.add(new DoubleInnerPageSomeColumn());
        methodList.add(new DoubleLeftPageSomeColumn());
        methodList.add(new DoubleCopyInsertSomeColumn());
        methodList.add(new ThreeInnerSomeColumn());
        methodList.add(new ThreeInnerLeftPageSomeColumn());
        return methodList;
    }
}
